package com.newlink.building.userinfo.mvp.contract

import com.newlink.building.common_base.base.IModel
import com.newlink.building.common_base.base.IPresenter
import com.newlink.building.common_base.base.IView
import com.newlink.building.common_base.model.bean.*

/**
 * @author wangyang
 * @date 2022/9/19
 * @description 我的——消息中心页面的Contract
 */
interface Module_UserInfo_MessageCenterContract {

    interface Model : IModel {
        fun deleteAllMessageList(request: MessageCleanRequest)

        fun getMessageList(request: MessageListRequest)
    }

    interface View : IView {
        fun getMessageListSuccess(list: MutableList<MessageListArrayData>)
        fun getMessageListFail()

        fun deleteAllMessageListSuccess()
        fun deleteAllMessageListFail()
    }

    interface Presenter : IPresenter<View> {
        fun deleteAllMessageList(request: MessageCleanRequest)

        fun getMessageList(request: MessageListRequest)
    }
}